package com.zhb.cloud.enums;

/**
 * @ClassName: ResultCode
 * @Description:响应码定义
 * @author: zhb1316783262@163.com
 * @date: 2019年2月20日下午4:19:31
 */
public enum ResultCode {
	SUCCESS(200, "操作成功"),
	PARAMETER_ERROR(400, "参数错误"),
	ERROR(500, "系统错误");

	private int code;

	private String desc;

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	private ResultCode(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}
}
